table.INDEX_PRIMARY_GET Function

Syntax

as P = Index_Primary_Get()

Description

Get the primary index for the table.

Discussion

The .INDEX_PRIMARY_GET() method returns the object pointer that references the primary index or query list of the table referenced by . The primary index is the index that is currently controlling the order of the records in the table.

Example

Display the name of the primary index in the Trace window.

dim tbl as P
tbl = table.current()
index_pointer = tbl.index_primary_get()
index_name = index_pointer.name_get()
trace.writeln("The name of the primary index is: " + index_name)

See Also